package com.youngwang.controller;

import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author youngwang
 *         Date: 2016/9/13
 */
@Controller
@CrossOrigin
public class TestSpringBootController {

    private static final Logger logger = LoggerFactory.getLogger(TestSpringBootController.class);


    @GetMapping(path = "hello")
    @ResponseBody
    @ApiOperation("helloWorld")
    public String home() {
        return "Hello World!";
    }


}
